import request from '@/utils/request'

// 获取组织结构数据
export function companydepartment() {
  return request({
    url: '/company/department',
    method: 'get'
  })
}

// 获取员工简单列表
export function sysusersimple() {
  return request({
    url: '/sys/user/simple',
    method: 'get'
  })
}

// 新增部门
export function companyDepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}

// 编辑部门信息
export function companydepartmentPut(data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}

// 根据id删除对应的部门
export function companydepartmentDel(id) {
  return request({
    url: '/company/department/' + id,
    method: 'delete'
  })
}
